package com.mirror.llk.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @Title: 常量
 * @Version: 1.0
 * @Author: QiYin
 * @Date: 2013-2-19
 * @Company: EmagSoftware
 */
public class Constant {

	/** 常用字符串和符号 **/

	public static final String EMPTY = "";

	public static final String SPRIT = "/";

	public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

	public static final String PIC_TYPE_PNG = ".png";

	public static final String FILE_TYPE_ZIP = ".zip";

	public static final String ZERO = "0";

	public static final String ONE = "1";

	public static final String QUESTION_MARK = "?";

	public static enum IMAGE {
		;

		public static final String PREFIX = "IMG_";

		public static final String SUFFIX = ".png";
	}

	/**
	 * 二进制字节流
	 */
	public static final String BINARY_OCTET_STREAM = "binary/octet-stream";

	public static final String REQUEST_TIME_OUT_TOOLTIP = "请求超时，请稍候再试";

	public static final String UNKNOWN = "未知";

	public static final String SUCCESS = "成功";

	/** 错误描述 **/

	public static final String UNTREATED_EVENT_EXCEPTION = "未处理的控件事件";

	public static final String BAD_REQUEST_EXCEPTION = "请求失败";

	public static final String UNSUPPORTED_ENCODING_EXCEPTION = "不支持的编码方式";

	public static final String IO_EXCEPTION = "输入输出流异常";

	public static final String JSON_EXCEPTION = "JSON数据解析异常";

	public static final String SOCKET_EXCEPTION = "网络异常";

	public static final String FILE_NOT_FOUND_EXCEPTION = "文件未找到异常";

	public static final String SQL_EXCEPTION = "SQL语句执行异常";

	/** 开放平台关键词 **/

	public static final int OPEN_TYPE_WEIBO = 1;

	public static final String WEIBO_UID = "uid";

	public static final String WEIBO_ACCESS_TOKEN = "access_token";

	public static final String WEIBO_EXPIRES_IN = "expires_in";

	public static final String WEIBO_SCREEN_NAME = "screen_name";

	public static final String WEIBO_PAGE_CURSOR = "cursor";

	public static final String WEIBO_IDS = "ids";

	public static final String WEIBO_INVITE_ALT = "@";

	public static final String WEIBO_COUNT = "count";

	public static final String WEIBO_CURSOR = "cursor";

	public static final String WEIBO_GENDER = "gender";

	public static final String WEIBO_STATUS = "status";

	public static final String WEIBO_DESCRIPTION = "description";

	public static final String WEIBO_PROFILE_URL = "profile_image_url";

	public static final String WEIBO_USERS_URL = "https://api.weibo.com/2/users/show.json";

	public static final String WEIBO_FOLLOW_UID_URL = "https://api.weibo.com/2/friendships/friends/ids.json";

	public static final String WEIBO_FOLLOW_LIST_URL = "https://api.weibo.com/2/friendships/friends.json";

	public static final String WEIBO_STATUSES_UPDATE_URL = "https://api.weibo.com/2/statuses/update.json";

	public static final String WEIBO_FANS_UID_URL = "https://api.weibo.com/2/friendships/followers/ids.json";

	public static final long WEIBO_EFFECT_TIME = 1 * 24 * 60 * 60 * 1000 - 5 * 60 * 1000;

	public static final String TENCENT_APP_ID = "801343440";

	public static final String TENCENT_APP_SECRET = "430aa4e953f548dc663020a4752bcdc3";

	public static final int OPEN_TYPE_TENCENT = 2;

	public static final String TENCENT_REDIRECT_URL = "http://dev.t.qq.com/apps/add/6";

	public static final String TENCENT_RESULT_DATA = "data";

	public static final String TENCENT_RESULT_INFO = "info";

	public static final String TENCENT_OPEN_ID = "openid";

	public static final String TENCENT_OAUTH_CONSUMER_KEY = "oauth_consumer_key";

	public static final String TENCENT_ACCESS_TOKEN = "access_token";

	public static final String TENCENT_EXPIRES_IN = "expires_in";

	public static final String TENCENT_OAUTH_VERSION = "oauth_version";

	public static final String TENCENT_OAUTH_VERSION_VALUE = "2.a";

	public static final String TENCENT_SCOPE = "scope";

	public static final String TENCENT_SCOPE_VALUE = "all";

	public static final String TENCENT_CLIENT_IP = "clientip";

	public static final long TENCENT_EFFECT_TIME = 7 * 24 * 60 * 60 * 1000 - 5 * 60 * 1000;

	// public static final String TENCENT_USERS_URL =
	// "https://graph.qq.com/user/get_simple_userinfo";
	public static final String TENCENT_FOLLOW_UID_URL = "https://open.t.qq.com/api/friends/idollist_name";

	public static final String TENCENT_FOLLOW_List_URL = "https://open.t.qq.com/api/friends/idollist_s";

	public static final String TENCENT_WEIBO_ADD_URL = "https://open.t.qq.com/api/t/add";

	public static final String TENCENT_FORMAT = "format";

	public static final String TENCENT_FORMAT_VALUE = "json";

	public static final String TENCENT_REQNUM = "reqnum";

	public static final String TENCENT_START_INDEX = "startindex";

	public static final String TENCENT_MODE = "mode";

	public static final String TENCENT_RET = "ret";

	public static final String TENCENT_NICK_NAME = "nick";

	public static final String TENCENT_USER_SEX = "sex";

	public static final String TENCENT_USER_INTRODUCTION = "introduction";

	public static final String TENCENT_USER_HEAD = "head";

	public static final String TENCENT_WEIBO_CONTENT = "content";

	/** 系统接口关键词 **/
	public static final String GAOJU_ID = "id";

	/** 偏好设定关键词 **/
	public static final String SP_USER_ID = "userId";

	public static final String SP_SINA_ID = "sinaId";

	public static final String SP_TENCENT_ID = "tencentId";

	public static final String SP_USER_NICK = "userNick";

	public static final int ACCOUNT_PRIMARY = 1;

	public static final int ACCOUNT_NOT_PRIMARY = 0;

	public static final String SP_OPEN_FILE_NAME = "openConfig";

	// public static final String SP_ACTION_FILE_NAME = "actionConfig";

	public static final String SP_USER_FILE_NAME = "userConfig";

	public static final String SP_OPEN_TYPE = "open_type";

	public static final String SP_OPEN_ID = "open_id";

	public static final String SP_ACCESS_TOKEN = "access_token";

	public static final String SP_EFFECT_TIME = "effect_time";

	public static final String SP_NICK_NAME = "nick_name";

	public static final String SP_USER_GENDER = "user_gender";

	public static final String SP_USER_DESCRIPTION = "user_description";

	public static final String SP_APP_FLAG = "app_flag";

	public static final String SP_LOCATION_LONGITUDE = "location_longitude";

	public static final String SP_LOCATION_LATITUDE = "location_latitude";

	public static final String SP_LOCATION_CITY = "location_city";

	public static final String SP_ACTION_ORDER = "action_order";

	public static final String SP_FIGURE_URL = "figure_url";

	public static final String SP_ACTION_TYPE = "action_type";

	public static final String SP_ACTION_CITY = "action_city";

	/** 意图关键词 **/

	public static final String INTENT_OPEN_ACCOUNT = "INTENT_OPEN_ACCOUNT";

	public static final String INTENT_ACTION_PROVINCE = "INTENT_ACTION_PROVINCE";

	public static final String INTENT_OPEN_TYPE = "INTENT_OPEN_TYPE";

	/** 数据库设置 **/
	/**
	 * 用户类型数据库 - 所有登录用户共用的数据库
	 */
	public static final String DB_COMMON = "DB_COMMON";

	/**
	 * 应用文件夹名
	 */
	public static final String APP_NAME = "DIYllk";

	/*** 不带圆角的图片 */
	public static final String LOCATION_NO_ROUND_CORNER = "noroundcorner/";

	/*** 高清图的绝对路径 */
	public static final String LOCATION_HIGH_PHOTO = "high/";

	/*** 高清图的绝对路径 */
	public static final String LOCATION_NORMAL_PHOTO = "normal/";

	/** 用户头像路径 */
	public static final String DIR_HEAD_PHOTO = "head/";

	/** 主题图片路径 */
	public static final String DIR_THEME_PHOTO = "theme/";

	/** 临时文件路径 */
	public static final String DIR_TEMP_FILE = "temp/";

	/** 数据同步关系字 **/
	/**
	 * 用户信息
	 */
	public static final String USER_INFO = "USER_INFO";

	/**
	 * 活动类型
	 */
	public static final String ACTION_TYPE = "ACTION_TYPE";

	/**
	 * 活动排序
	 */
	public static final String ACTION_ORDER = "ACTION_ORDER";

	/**
	 * 活动城市
	 */
	public static final String ACTION_CITY = "ACTION_CITY";

	/**
	 * 活动城市
	 */
	public static final String ACTION_PROVINCE = "ACTION_PROVINCE";

	/**
	 * 同步时间
	 */
	public static final String SYNC_TIME = "SYNC_TIME";

	/**
	 * 同步时间
	 */
	public static final String USER_PHOTO = "USER_PHOTO";

	/**
	 * 活动列表活动数/页
	 */
	public static final int ACTION_LIST_SIZE = 10;

	/**
	 * 活动详情页提问数/页
	 */
	public static final int QUESTION_LIST_SIZE = 10;

	public static final int PROCESS_ACTION_JOIN = 1;

	public static final int PROCESS_ACTION_CANCEL = 2;

	public static final int PROCESS_ACTION_QUIT = 3;

	public static final int PROCESS_ACTION_SIGN = 4;

	public static final int PROCESS_ACTION_COLLECT = 5;

	public static final int PROCESS_ACTION_REMOVE = 6;

	public static final int PROCESS_ACTION_FINISH = 7;

	public static final int ACTION_STATE_JOIN_KEY = 1;

	public static final String ACTION_STATE_JOIN = "报名中";

	public static final int ACTION_STATE_JOIN_FINISH_NOT_START_KEY = 5;

	public static final String ACTION_STATE_JOIN_FINISH_NOT_START = "报名结束";

	public static final int ACTION_STATE_CANCEL_KEY = 2;

	public static final String ACTION_STATE_CANCEL = "已取消";

	public static final int ACTION_STATE_PROGRESS_KEY = 3;

	public static final String ACTION_STATE_PROGRESS = "进行中";

	public static final int ACTION_STATE_FINISH_KEY = 4;

	public static final String ACTION_STATE_FINISH = "已结束";

	public static final int ACTION_STATE_FINISH_CAN_CONFIRM_KEY = 6;

	public static final String ACTION_STATE_FINISH_CAN_CONFIRM = "已结束，确认签到";

	public static final int ACTION_IS_SIGN = 1;

	public static final int ACTION_IS_SIGN_CONFIRM = 1;

	public static final int ACTION_IS_COLLECT = 1;

	public static final int PHOTO_TYPE_NORMAL = 0;

	public static final int PHOTO_TYPE_HIGH = 1;

	public static final int SEX_UNKNOW = 0;

	public static final int SEX_MALE = 1;

	public static final int SEX_FEMALE = 2;

	public static String REGULAR_EMAIL = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";

	public static String REGULAR_PHONE = "^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$";

	public static int FRIEND_FOLLOW = 1;

	public static int FRIEND_FANS = 2;

	public static int FRIEND_RECOMMEND = 3;

	public static int FRIEND_SEARCH = 4;

	public static int FRIEND_TYPE_GAOJU = 1;

	public static int FRIEND_TYPE_NOT_GAOJU = 2;

	public static int USER_TYPE_GAOJU = 0;

	public static int USER_TYPE_SINA = 1;

	public static int USER_TYPE_TENCENT = 2;

	/**
	 * 0：自己| 1：关注| 2：粉丝| 3：好友 | -1:无关系
	 */
	public static int RELATION_SELF = 0;

	public static int RELATION_FOLLOW = 1;

	public static int RELATION_FANS = 2;

	public static int RELATION_FRIEND = 3;

	public static int RELATION_UNRELATED = -1;

	/** 消息列表刷新时间 */
	public static long MESSAGE_TIMER_PERIOD = 5 * 1000;

	/** 同步消息的时间 */
	public static long MESSAGE_SYNC_TIMER_PERIOD = 10 * 1000;

	/** 头像图片的圆角半径 */
	public static int HEAD_IMAGE_ROUND_FIXELS = 5;

	/** 头像图片的普通大小 */
	public static float HEAD_IMAGE_NORMAL_SIZE = 50;

	public static int EVALUATE_LEVEL_GOOD = 3;

	public static String EVALUATE_LEVEL_GOOD_VALUE = "好评";

	public static int EVALUATE_LEVEL_MEDIUM = 2;

	public static String EVALUATE_LEVEL_MEDIUM_VALUE = "中评";

	public static int EVALUATE_LEVEL_NEGATIVE = 1;

	public static String EVALUATE_LEVEL_NEGATIVE_VALUE = "差评";

	public static String APP_CHN_NAME = "搞局";

	public static String FRIEND_INVITE_MESSAGE = "我正在使用最新的手机应用#{0}#，轻松发布和参加各种有趣的活动，大家一起来搞吧~";

	public static String PUBLISH_SHARE_MESSAGE = "我在#{0}#中发布了一个新活动#[{1}]#，将于[{2}]在[{3}]举行，赶快来报名啊~";

	public static String JOIN_SHARE_MESSAGE = "我在#{0}#中报名参加了一个新活动#[{1}]#，将于[{2}]在[{3}]举行，赶快来报名啊~";

	public static String SIGN_SHARE_MESSAGE = "我在#{0}#中参加了一个活动#[{1}]#，正在现场签到，你也来搞搞吧~";

	public static String EVALUATE_SHARE_MESSAGE = "我在#{0}#对参加过的活动#[{1}]#进行评价，你也来搞搞吧~";

	public static int WORD_SIZE_THREE_HUNDRED = 300;

	/** 游戏类型-新游戏 */
	public static final int NEW_TYPE = 1;

	/** 游戏类型-存档 */
	public static final int HISTORY_TYPE = 2;

}
